/**
 * @date: 2025/3/20
 * @author: 小红
 * @Description: 鉴权
 */

import type { LoginEntity, SceneValidEntity } from '@/entity/UserEntity';
import http from '@/utils/http';
import type { _AxiosRequestConfig } from '@/utils/http/types';

/**
 * 登录
 * @constructor
 * @param data
 * @param options
 */
export const ApiLogin = (data: any, options?: _AxiosRequestConfig) => http.post<LoginEntity>('/auth/user/key-login', data, options);

/**
 * 登录校验
 * @param data
 * @param options
 * @constructor
 */
export const ApiSceneValid = (data: any, options?: _AxiosRequestConfig) => http.post<SceneValidEntity>('/auth/scene-valid', data, options);
